package cn.edu.sgu.www.mhxysy.service.gang.impl;

import cn.edu.sgu.www.mhxysy.entity.gang.GangJob;
import cn.edu.sgu.www.mhxysy.redis.repository.impl.GangJobRepository;
import cn.edu.sgu.www.mhxysy.service.gang.GangJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class GangJobServiceImpl implements GangJobService {

	private final GangJobRepository gangJobRepository;

	@Autowired
	public GangJobServiceImpl(GangJobRepository gangJobRepository) {
		this.gangJobRepository = gangJobRepository;
	}

	@Override
	public List<GangJob> selectAll() {
		return gangJobRepository.selectList();
	}

	@Override
	public GangJob selectById(Integer id) {
		return gangJobRepository.selectById(id.toString());
	}

}